package com.wlk.controller;

import com.wlk.service.AccountingYearService;
import com.wlk.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/year")
public class AccountingYearController {
    @Resource
    private AccountingYearService accountingYearService;
    /**
     * @description: 获取年度列表
     * @author:
     * @date: 2024/6/19 下午2:24
     * @param:
     * @return:
     **/
    @GetMapping("/list")
    public Result list() {
        return accountingYearService.getYearList();
    }
}
